package com.ruanjian.api.service.impl;

import com.ruanjian.api.bean.Initial;
import com.ruanjian.api.mapper.InitialMapper;
import com.ruanjian.api.service.IInitialService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author shkstart
 * @create 2022-11-30 10:35
 */
@Service
public class InitialServiceImpl implements IInitialService {

    @Autowired
    InitialMapper initialMapper;

    @Override
    public List<Initial> selectInitialBrowse() {
        return initialMapper.selectInitialBrowse();
    }

    @Override
    public int updateByExperimentIdSelective(Initial record) {
        return initialMapper.updateByExperimentIdSelective(record);
    }

    @Override
    public int insertSelective(Initial record) {
        return initialMapper.insertSelective(record);
    }

    @Override
    public Initial selectAllByExperimentId(Long experimentId) {
        return initialMapper.selectAllByExperimentId(experimentId);
    }
}
